<%if !photo.nil?%>
<div class="setImage">
  <a href="<%=photo.url%>" rel="lightbox[photos]" title="<%=photo.title%>" name="<%=LIGHTBOX_CONFIG[:flickr_user_id]%>|<%=photo.id%>">
    <img src="<%=photo.url('s')%>" title="<%=photo.title%>" alt="<%=photo.title%>" class="thumb" border="0"/>
   </a>
</div>
<% end%>